package cn.com.sise.pojo;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

public class Feedback {
    private Integer feedbackId;
    private String details;
    private String submitTime;
    private String feedbackSolution;
    private Integer userId;

    public Integer getFeedbackId() {
        return feedbackId;
    }

    public void setFeedbackId(Integer feedbackId) {
        this.feedbackId = feedbackId;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public String getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(Timestamp submitTime) {
        this.submitTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(submitTime);
    }

    public String getFeedbackSolution() {
        return feedbackSolution;
    }

    public void setFeedbackSolution(String feedbackSolution) {
        this.feedbackSolution = feedbackSolution;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "feedback{" +
                "feedbackId=" + feedbackId +
                ", details='" + details + '\'' +
                ", submitTime=" + submitTime +
                ", feedbackSolution='" + feedbackSolution + '\'' +
                ", userId=" + userId +
                '}';
    }
}
